module.exports = {
  css: {
    loaderOptions: {
      sass: {
        prependData: `@import "@/assets/scss/variable.scss";`
      }
    }
  },
  devServer: {
    proxy: {
      '^/myApi': {
        target: 'http://testapi.gvrbox.com',
        changeOrigin: true, // 是否跨域
        pathRewrite: {
          '^/myApi': '' // 规定请求地址以什么作为开头
        }
      }
    }
  },
  publicPath: process.env.NODE_ENV === 'development' ? '/' : '/mobile/'
}
